How Good Is Local Type Inference?
نویسندگان
چکیده
A partial type inference technique should come with a simple and precise specification, so that users predict its behavior and understand the error messages it produces. Local type inference techniques attain this simplicity by inferring missing type information only from the types of adjacent syntax nodes, without using global mechanisms such as unification variables. The paper reports on our experience with programming in a full-featured programming language including higher-order polymorphism, subtyping, parametric datatypes, and local type inference. On the positive side, our experiments on several nontrivial examples confirm previous hopes for the practicality of the type inference method. On the negative side, some proposed extensions mitigating known expressiveness problems turn out to be unsatisfactory on close examination. Comments University of Pennsylvania Department of Computer and Information Science Technical Report No.MSCIS-99-17. This technical report is available at ScholarlyCommons: http://repository.upenn.edu/cis_reports/180 How Good is Local Type Inference? Haruo Hosoya Benjamin C. Pierce Department of CIS Department of CIS University of Pennsylvania University of Pennsylvania [email protected] .upenn.edu [email protected] University of Pennsylvania Technical Report MS-CIS-99-17
منابع مشابه
Local Type Argument Synthesis with Bounded Quanti cation
In a companion paper [PT98], we introduced a local type inference method for inferring type arguments to polymorphic functions. We show here how our method can be extended to handle Cardelli and Wegner's Kernel Fun variant of F .
متن کاملA Flexible Link Radar Control Based on Type-2 Fuzzy Systems
An adaptive neuro fuzzy inference system based on interval Gaussian type-2 fuzzy sets in the antecedent part and Gaussian type-1 fuzzy sets as coefficients of linear combination of input variables in the consequent part is presented in this paper. The capability of the proposed method (we named ANFIS2) for function approximation and dynamical system identification is remarkable. The structure o...
متن کاملLegibility of the cities and the factors having impacts on it
How to design a city more legible is one of the main problems in urban design. To define the parameters that are crucial in designing legible cities is the main debate of this article. The research methodology was studying mental maps of the city dwellers and comparing the group image of the city with the pattern of continuity of salient elements and integration of the urban axes using Space Sy...
متن کاملInference about the Burr Type III Distribution under Type-II Hybrid Censored Data
This paper presents the statistical inference on the parameters of the Burr type III distribution, when the data are Type-II hybrid censored. The maximum likelihood estimators are developed for the unknown parameters using the EM algorithm method. We provided the observed Fisher information matrix using the missing information principle which is useful for constructing the asymptotic confidence...
متن کاملAdditional Material for “Unifying Data Representation Transformations”
This report shows an end-to-end formalization of the data representation transformation mechanism in the “Unifying Data Representation Transformations” paper [16]. Since the mechanism described in the paper is targeted at the Scala programming language and the specification is written against System F<: with local colored type inference [11, 14] formally reasoning about the calculus is a major ...
متن کامل